{	Problem: http://codeforces.ru/problemset/problem/65/A
	Verdict: Accepted
}
var a,b,c,d,e,f:longint;
begin
read(a,b,c,d,e,f);
if (a*c*e<b*d*f) or ((a=0) and (b*d>0)) or ((c=0) and (d>0)) then write('Ron') else write('Hermione');
end.
